#include "xobject.h"
#include <stdio.h>
#include <string.h>

int XSIPObject::s_handler = 0;

XSIPObject::XSIPObject()
{
	m_handler = ++ s_handler;
}

XSIPObject::~XSIPObject()
{
	m_handler = 0;
}

int XSIPObject::getHandler()
{
	return m_handler;
}

void* XSIPObject::getObject(const char* name) const
{
	if (strcmp(name, "XSIPObject") == 0)
		return (void*)this;
	return NULL;
}